package com.stud.system.domain;

import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.*;

/**
 * 区域管理对象 t_area
 *
 * @author Stud
 * @date 2023-07-27
 */
@ApiModel("区域管理")
@Data
@TableName("t_area")
public class Area extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "上级区域ID")
    @ApiModelProperty(name = "parentId", value = "上级区域ID")
    private Long parentId;

    @TableField(condition = SqlCondition.LIKE)
    @Excel(name = "上级区域名称")
    @ApiModelProperty(name = "parentName", value = "上级区域名称")
    private String parentName;

    @Excel(name = "所属区(二级区域)的ID")
    @ApiModelProperty(name = "districtId", value = "所属区(二级区域)的ID")
    private Long districtId;

    @TableField(condition = SqlCondition.LIKE)
    @Excel(name = "所属区(二级区域)的名字")
    @ApiModelProperty(name = "districtName", value = "所属区(二级区域)的名字")
    private String districtName;

    @Excel(name = "区域编码")
    @ApiModelProperty(name = "areaNo", value = "区域编码")
    private String areaNo;

    @TableField(condition = SqlCondition.LIKE)
    @Excel(name = "区域名称")
    @ApiModelProperty(name = "areaName", value = "区域名称")
    private String areaName;

    @Excel(name = "区域别名")
    @ApiModelProperty(name = "areaAlias", value = "区域别名")
    private String areaAlias;

    @Excel(name = "区域全路径")
    @ApiModelProperty(name = "areaFullPath", value = "区域全路径")
    private String areaFullPath;

    @Excel(name = "经度")
    @ApiModelProperty(name = "longitude", value = "经度")
    private String longitude;

    @Excel(name = "纬度")
    @ApiModelProperty(name = "latitude", value = "纬度")
    private String latitude;

    @Excel(name = "权重")
    @ApiModelProperty(name = "weight", value = "权重")
    private Long weight;

    @Excel(name = "排序")
    @ApiModelProperty(name = "sort", value = "排序")
    private Long sort;

}
